package com.market.dao;

import java.util.List;

import com.market.domain.Location;
import com.market.domain.Message;
import com.market.domain.Picture;
import com.market.domain.User;

public interface MessageDao extends GenericDao<Message, Long> {
	/**
	 * This method find all messages that the message type is news;
	 * @return
	 */
	public List<Message> findAllBlogs();
	
	/**
	 * This method find all users associated to this message
	 * @param message
	 * @return
	 */
	public List<User> findUsers(Message message);
	
	/**
	 * This method find all locations associated to this message
	 * @param message
	 * @return
	 */
	public List<Location> findLocations(Message message);
	
	
	/**
	 * This method find all pictures associated to this message
	 * @param message
	 * @return
	 */
	public List<Picture> findPictures(Message message);
}
